from io import StringIO

f = StringIO()
f.write("hello\n")
# f.write(" ")
f.write("python")

# print(f.getvalue())

str = f.getvalue();

f = StringIO(str)
while True:
	l = f.readline()
	if l == "":
		break;
	print(l.strip())